<?php

class MCore_Controller_Action_Basic extends Zend_Controller_Action
{

	/** public function postDispatch() {{{
	 *
	 *
	 *
	 */
	public function postDispatch()
	{
		$this->view->content = $this->view->render("{$this->request["controller"]}/{$this->request["action"]}.phtml") ;

		if($this->request["output"] != "html" )
		{
			$response = $this->getResponse();

			$view = new Zend_View();
			$view->content = $this->view->content;
			$view->setBasePath( BASEPATH . 'application/default/views/');

			$response->setBody($view->render('index/index.phtml'));
		}
	}
	/*}}}*/

	/** public function init() {{{
	 *
	 *
	 *
	 */
	public function init()
	{
		$this->request = $this->getRequest()->getParams();
		$this->getResponse()->setHeader('Content-Type','text/html; charset=UTF-8',true);

	}
	/*}}}*/

}
?>
